import time


def yieldduorenwu1():
    count = 0
    while count < 10:
        print("==========yieldduorenwu1==========")
        # 在此处将停顿
        yield
        time.sleep(1)


def yieldduorenwu2():
    count = 0
    while count < 10:
        print("==========yieldduorenwu2==========")
        # 在此处将停顿
        yield
        time.sleep(1)


if __name__ == "__main__":
    duo1 = yieldduorenwu1()
    duo2 = yieldduorenwu2()

    while True:
        next(duo1)
        next(duo2)
